package cn.itsource.basic.basic.service;

import cn.itsource.basic.PageList;
import cn.itsource.basic.basic.query.BaseQuery;
import cn.itsource.org.domain.Department;
import cn.itsource.org.query.DepartmentQuery;

import java.util.List;

public interface IBaseService<T> {
    void add(T t);

    void delete(Long id);

    void update(T t);

    T queryById(Long id);

    List<T> queryAll();

    PageList<T> queryPage(BaseQuery query);
    //批量删除
    void batchRemove (List<Long> ids);
}
